// TestStaticProject.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <stdio.h>
#include <cstdlib>
#include <cassert>
#include "testHead.h"
#include "../TestLib/static.h"
#include "../TestDll/dynamic.h"
#pragma  comment(lib,"TestLib.lib")
void testPoint(int* p){

	assert(p != NULL); 
}
int _tmain(int argc, _TCHAR* argv[])
{
	/*
	HINSTANCE hDll = NULL; 
	typedef int(*PSUM)(int a, int b); 
	PSUM pSum; 
	hDll = LoadLibraryA("TestDll.dll");
	pSum = (PSUM)GetProcAddress(hDll,"sumDll"); 
	*/
	printf("%d\n",sumDll(2,3));
//	printf("%d\n",pSum(4,3));
	printf("%d\n",sum(2,2));
	//FreeLibrary(hDll); 
	testInner(); 
	printf("%d\n",a);
	testPoint(NULL); 
	system("pause"); 
	return 0; 
}

